using System;
using System.Diagnostics;
using System.Reflection;
using System.Resources;
namespace Fcdbas.Core
{
	public static class Sys
	{
		public const int AC_Dynamic = -2147483648;
		public const int CF_Text = 1;
		public const int CM_TableCell = 1;
		public const int COL_CheckBox_IgnoreCase = 1;
		public const int COL_DropDownList_Sorted = 1;
		public const int COL_DropDownList_VScroll = 2;
		public const int COL_DropDownList_Auto = 4;
		public const int COL_DropDownList_Editable = 8;
		public const int COL_CellType_Standard = 1;
		public const int COL_CellType_CheckBox = 2;
		public const int COL_CellType_DropDownList = 3;
		public const int COL_CellType_PopupEdit = 4;
		public const int COL_GetID = 0;
		public const int COL_GetPos = 1;
		public const int COL_Editable = 2;
		public const int COL_IndicateOverflow = 4096;
		public const int COL_RightJustify = 128;
		public const int COL_CenterJustify = 256;
		public const int COL_Selected = 4;
		public const int COL_Visible = 1;
		public const int COL_Invisible = 16;
		public const int COL_DimTitle = 32;
		public const int COL_ReadOnly = 512;
		public const int COL_UpperCase = 1024;
		public const int COL_LowerCase = 2048;
		public const int COL_MultilineCell = 8388608;
		public const int COLOR_3DFace = 1879048192;
		public const int COLOR_3DHighlight = -1879048192;
		public const int COLOR_3DShadow = -2147483648;
		public const int COLOR_IndexCell = 108;
		public const int COLOR_IndexCellText = 100;
		public const int COLOR_IndexTransparent = 101;
		public const int COLOR_IndexWindow = 5;
		public const int COLOR_IndexWindowText = 8;
		public const int COLOR_Black = 0;
		public const int COLOR_Blue = 16711680;
		public const int COLOR_Burgundy = 80;
		public const int COLOR_Charcoal = 4210752;
		public const int COLOR_Chartreuse = 32896;
		public const int COLOR_Cyan = 16776960;
		public const int COLOR_DarkAqua = 12566309;
		public const int COLOR_DarkBlue = 8388608;
		public const int COLOR_DarkGray = 8421504;
		public const int COLOR_DarkGreen = 32768;
		public const int COLOR_DarkRed = 128;
		public const int COLOR_Default = 805306368;
		public const int COLOR_Gray = 12632256;
		public const int COLOR_Green = 65280;
		public const int COLOR_Jade = 4210688;
		public const int COLOR_LightAqua = 16777087;
		public const int COLOR_LightGray = 14869218;
		public const int COLOR_LightGreen = 12582847;
		public const int COLOR_LightPeriwinkle = 16760767;
		public const int COLOR_Magenta = 16711935;
		public const int COLOR_Maize = 8454143;
		public const int COLOR_Marigold = 8323327;
		public const int COLOR_MidnightBlue = 8388608;
		public const int COLOR_Orchid = 16744447;
		public const int COLOR_Periwinkle = 16744319;
		public const int COLOR_Purple = 8388736;
		public const int COLOR_Red = 255;
		public const int COLOR_RoyalBlue = 6094848;
		public const int COLOR_Salmon = 8355839;
		public const int COLOR_Sky = 16777151;
		public const int COLOR_Teal = 8421376;
		public const int COLOR_White = 16777215;
		public const int COLOR_Yellow = 65535;
		public const int COLOR_None = 1610612736;
		public const int COLOR_SysWindow = 268435456;
		public const int COLOR_SysWindowFrame = 1342177280;
		public const int COLOR_SysWindowText = 536870912;
		public const int CURSOR_Arrow = 32512;
		public const int CURSOR_Cross = 32515;
		public const int CURSOR_DisableDrop = 3;
		public const int CURSOR_DragDrop = 2;
		public const int CURSOR_IBeam = 32513;
		public const int CURSOR_Icon = 32641;
		public const int CURSOR_Size = 32640;
		public const int CURSOR_SizeNESW = 32643;
		public const int CURSOR_SizeNS = 32645;
		public const int CURSOR_SizeNWSE = 32642;
		public const int CURSOR_SizeWE = 32644;
		public const int CURSOR_UpArrow = 32516;
		public const int CURSOR_Wait = 32514;
		public const int CURSOR_Window = 1;
		public const int DBP_AUTOCOMMIT = 1;
		public const int DBP_BRAND = 2;
		public const int DBP_FETCHTHROUGH = 7;
		public const int DBP_LOCKWAITTIMEOUT = 5;
		public const int DBP_NOPREBUILD = 8;
		public const int DBP_ISOLEVEL = 9;
		public const int DBP_PRESERVE = 3;
		public const int DBP_ROLLBACKONTIMEOUT = 6;
		public const int DBP_VERSION = 4;
		public const int SQLERROR_Reason = 2;
		public const int SQLERROR_Remedy = 4;
		public const int DBV_BRAND_ALLBASE = 10;
		public const int DBV_BRAND_APPLEDAL = 22;
		public const int DBV_BRAND_AS400 = 7;
		public const int DBV_BRAND_CCAMODEL20 = 21;
		public const int DBV_BRAND_CINCOMSUPRA = 20;
		public const int DBV_BRAND_DB2 = 2;
		public const int DBV_BRAND_DBASE = 17;
		public const int DBV_BRAND_EDASQL = 25;
		public const int DBV_BRAND_IMBSQLDS = 13;
		public const int DBV_BRAND_INFORMIX = 5;
		public const int DBV_BRAND_INFORMIXONLINE = 24;
		public const int DBV_BRAND_INGRES = 15;
		public const int DBV_BRAND_INGRESSOPENSQL = 29;
		public const int DBV_BRAND_INGRESSOPENSQLD = 30;
		public const int DBV_BRAND_NETWARE = 6;
		public const int DBV_BRAND_NETWARESQL = 6;
		public const int DBV_BRAND_NOCOMMIMER = 27;
		public const int DBV_BRAND_MSSQL = 102;
		public const int DBV_BRAND_NONSTOPSQL = 12;
		public const int DBV_BRAND_ODBC = 31;
		public const int DBV_BRAND_ORACLE7 = 28;
		public const int DBV_BRAND_ORACLE8 = 101;
		public const int DBV_BRAND_ORACLE = 4;
		public const int DBV_BRAND_OS2EE = 3;
		public const int DBV_BRAND_RDB = 11;
		public const int DBV_BRAND_RDBII = 19;
		public const int DBV_BRAND_SHAREBASE = 23;
		public const int DBV_BRAND_SNIDDB4 = 18;
		public const int DBV_BRAND_SNISESAM = 14;
		public const int DBV_BRAND_SNIUDS = 26;
		public const int DBV_BRAND_SQLACCESS = 16;
		public const int DBV_BRAND_SQL = 1;
		public const int DBV_BRAND_SQLHOSTAPP = 99;
		public const int DBV_BRAND_SYBASE = 8;
		public const int DBV_BRAND_SYSTEM10 = 32;
		public const int DBV_BRAND_TERADATA = 9;
		public const int DRIVE_Floppy = 2;
		public const int DRIVE_Fixed = 3;
		public const int DRIVE_Network = 4;
		public const int DRIVE_CDROM = 5;
		public const int DRIVE_RAM = 6;
		public const int DDE_fAck = 32768;
		public const int DDE_fBusy = 16384;
		public const int DDE_fNoData = 16384;
		public const int DDE_fRelease = 8192;
		public const int DDE_fResponse = 4096;
		public const int DT_Boolean = 1;
		public const int DT_DateTime = 2;
		public const int DT_LongString = 7;
		public const int DT_Number = 3;
		public const int DT_String = 5;
		public const int DW_Default = -1;
		public const int EVAL_Date = 3;
		public const int EVAL_Handle = 4;
		public const int EVAL_If = 100;
		public const int EVAL_Number = 1;
		public const int EVAL_Set = 99;
		public const int EVAL_String = 2;
		public const int EVAL_Template = 5;
		public const int FA_Archive = 32;
		public const int FA_Directory = 16;
		public const int FA_Drive = 16384;
		public const int FA_Exclusive = 32768;
		public const int FA_Hidden = 2;
		public const int FA_Queued = 8192;
		public const int FA_ReadOnly = 1;
		public const int FA_Standard = 0;
		public const int FA_System = 4;
		public const int FETCH_Delete = 3;
		public const int FETCH_EOF = 1;
		public const int FETCH_Ok = 0;
		public const int FETCH_Update = 2;
		public const int FILE_CopyDest = 2;
		public const int FILE_CopyExist = 3;
		public const int FILE_CopyOK = 0;
		public const int FILE_CopyRead = 4;
		public const int FILE_CopySrc = 1;
		public const int FILE_CopyWrite = 5;
		public const int FILE_SeekBegin = 0;
		public const int FILE_SeekCurrent = 1;
		public const int FILE_SeekEnd = 2;
		public const int FMT_Date_JapanEmperor = 3;
		public const int FMT_Date_JapanGregorian = 2;
		public const int FMT_Date_LongGregorian = 0;
		public const int FMT_Date_ShortGregorian = 1;
		public const int FMT_Format_Currency = 1;
		public const int FMT_Format_Date = 2;
		public const int FMT_Format_DateTime = 3;
		public const int FMT_Format_Decimal = 4;
		public const int FMT_Format_Invisible = 5;
		public const int FMT_Format_LowerCase = 8;
		public const int FMT_Format_Percentage = 6;
		public const int FMT_Format_Picture = -1;
		public const int FMT_Format_Time = 7;
		public const int FMT_Format_Unformatted = 0;
		public const int FMT_Format_UpperCase = 9;
		public const int FMT_Parm_iCurrDigits = 17;
		public const int FMT_Parm_iCurrency = 1;
		public const int FMT_Parm_iDateType = 13;
		public const int FMT_Parm_iDigits = 3;
		public const int FMT_Parm_iLzero = 4;
		public const int FMT_Parm_iNegCurr = 18;
		public const int FMT_Parm_iTime = 5;
		public const int FMT_Parm_iTLZero = 16;
		public const int FMT_Parm_s1159 = 6;
		public const int FMT_Parm_s2359 = 7;
		public const int FMT_Parm_sCurrency = 8;
		public const int FMT_Parm_sDecimal = 10;
		public const int FMT_Parm_sLongDate = 15;
		public const int FMT_Parm_sShortDate = 14;
		public const int FMT_Parm_sThousand = 11;
		public const int FMT_Parm_sTime = 12;
		public const int FMT_Pic_DateTime = 1;
		public const int FMT_Pic_Number = 2;
		public const int FMT_Prefix_NoSeparation = 0;
		public const int FMT_Prefix_Separation = 2;
		public const int FMT_Profile_Program = -1;
		public const int FMT_Profile_Default = 0;
		public const int FMT_Profile_Australia = 61;
		public const int FMT_Profile_Belgium = 32;
		public const int FMT_Profile_Brazil = 55;
		public const int FMT_Profile_Denmark = 45;
		public const int FMT_Profile_Finland = 358;
		public const int FMT_Profile_France = 33;
		public const int FMT_Profile_Italy = 39;
		public const int FMT_Profile_Japan = 81;
		public const int FMT_Profile_Netherlands = 31;
		public const int FMT_Profile_Norway = 47;
		public const int FMT_Profile_Spain = 34;
		public const int FMT_Profile_Sweden = 46;
		public const int FMT_Profile_Switzerland = 41;
		public const int FMT_Profile_UnitedKingdom = 44;
		public const int FMT_Profile_USA = 1;
		public const int FMT_Profile_Germany = 49;
		public const int FMT_Suffix_NoSeparation = 1;
		public const int FMT_Suffix_Separation = 3;
		public const int FMT_Time_12Hour = 0;
		public const int FMT_Time_24Hour = 1;
		public const int FMT_Validate_Dialog = 1;
		public const int FMT_Validate_None = 0;
		public const int FONT_EnhBold = 8;
		public const int FONT_EnhDefault = 1;
		public const int FONT_EnhItalic = 2;
		public const int FONT_EnhNormal = 0;
		public const int FONT_EnhStrikeOut = 16;
		public const int FONT_EnhUnderline = 4;
		public const int FONT_GetPrinter = 2;
		public const int FONT_GetScreen = 1;
		public const int FORM_nFormHeight = 2;
		public const int FORM_nFormPages = 3;
		public const int FORM_nFormWidth = 1;
		public const int HELP_Context = 1;
		public const int HELP_Finder = 11;
		public const int HELP_HelpOnHelp = 4;
		public const int HELP_Index = 3;
		public const int HELP_Key = 257;
		public const int HELP_Quit = 2;
		public const int HELP_SetIndex = 5;
		public const int IDABORT = 3;
		public const int IDCANCEL = 2;
		public const int IDIGNORE = 5;
		public const int IDNO = 7;
		public const int IDOK = 1;
		public const int IDRETRY = 4;
		public const int IDYES = 6;
		public const int LB_Err = -1;
		public const int LB_ErrSpace = -2;
		public const int LB_Ok = 0;
		public const int MAX_DefaultDataField = 100;
		public const int MAX_DefaultMultiline = 1000;
		public const int MB_AbortRetryIgnore = 2;
		public const int MB_ApplModal = 0;
		public const int MB_DefButton1 = 0;
		public const int MB_DefButton2 = 256;
		public const int MB_DefButton3 = 512;
		public const int MB_IconAsterisk = 64;
		public const int MB_IconInformation = 64;
		public const int MB_IconExclamation = 48;
		public const int MB_IconHand = 16;
		public const int MB_IconQuestion = 32;
		public const int MB_IconStop = 16;
		public const int MB_NoFocus = 32768;
		public const int MB_Ok = 0;
		public const int MB_OkCancel = 1;
		public const int MB_RetryCancel = 5;
		public const int MB_SystemModal = 4096;
		public const int MB_YesNo = 4;
		public const int MB_YesNoCancel = 3;
		public const int OF_Text = 0;
		public const int OF_Binary = 65536;
		public const int OF_Unicode = 131072;
		public const int OF_UTF7 = 262144;
		public const int OF_UTF8 = 524288;
		public const int OF_Create = 4096;
		public const int OF_Exist = 16384;
		public const int OF_Parse = 256;
		public const int OF_Delete = 512;
		public const int OF_Read = 0;
		public const int OF_Write = 1;
		public const int OF_ReadWrite = 2;
		public const int OF_Append = 3;
		public const int OF_ReadAppend = 4;
		[System.Obsolete("Not supported.")]
		public const int OF_Reopen = 32768;
		public const int OF_Share_Compat = 0;
		public const int OF_Share_Deny_None = 64;
		public const int OF_Share_Deny_Read = 48;
		public const int OF_Share_Deny_Write = 32;
		public const int OF_Share_Exclusive = 16;
		public const int PIC_FitBestFit = 2;
		public const int PIC_FitScale = 3;
		public const int PIC_FitSizeToFit = 1;
		public const int PIC_FormatBitmap = 1;
		public const int PIC_FormatIcon = 2;
		public const int PIC_FormatObject = 3;
		public const int PIC_ImageTypeNone = 0;
		public const int PIC_ImageTypeBMP = 1;
		public const int PIC_ImageTypeICON = 2;
		public const int PIC_ImageTypeWMF = 3;
		public const int PIC_ImageTypeTIFF = 4;
		public const int PIC_ImageTypePCX = 5;
		public const int PIC_ImageTypeGIF = 6;
		public const int PIC_ImageTypeJPEG = 7;
		public const int PIC_ImageTypeNuVEQ = 8;
		public const int PLATFORM_Current = 0;
		public const int PLATFORM_Solaris = 1;
		public const int PLATFORM_Windows = 0;
		public const int PRT_nCopyCount = 3;
		public const int PRT_nDraftMode = 1;
		public const int PRT_nFromPage = 7;
		public const int PRT_nMarginLeft = 4;
		public const int PRT_nMarginTop = 5;
		public const int PRT_nPrintAll = 6;
		public const int PRT_nShowFormPageRect = 9;
		public const int PRT_nToPage = 8;
		public const int ROW_Edited = 4;
		public const int ROW_Hidden = 8192;
		public const int ROW_HideMarks = 64;
		public const int ROW_MarkDeleted = 32;
		public const int ROW_New = 8;
		public const int ROW_Selected = 2;
		public const int ROW_UnusedFlag1 = 128;
		public const int ROW_UnusedFlag2 = 256;
		public const int RPT_BeforeBreakFooter1 = 14;
		public const int RPT_BeforeBreakFooter2 = 15;
		public const int RPT_BeforeBreakFooter3 = 16;
		public const int RPT_BeforeBreakFooter4 = 17;
		public const int RPT_BeforeBreakFooter5 = 18;
		public const int RPT_BeforeBreakFooter6 = 19;
		public const int RPT_BeforeBreakFooter7 = 20;
		public const int RPT_BeforeBreakFooter8 = 21;
		public const int RPT_BeforeBreakHeader1 = 6;
		public const int RPT_BeforeBreakHeader2 = 7;
		public const int RPT_BeforeBreakHeader3 = 8;
		public const int RPT_BeforeBreakHeader4 = 9;
		public const int RPT_BeforeBreakHeader5 = 10;
		public const int RPT_BeforeBreakHeader6 = 11;
		public const int RPT_BeforeBreakHeader7 = 12;
		public const int RPT_BeforeBreakHeader8 = 13;
		public const int RPT_BeforeDetail = 5;
		public const int RPT_BeforePageFooter = 2;
		public const int RPT_BeforePageHeader = 1;
		public const int RPT_BeforeReportFooter = 4;
		public const int RPT_BeforeReportHeader = 3;
		public const int RPT_DoneBreakFooter1 = 56;
		public const int RPT_DoneBreakFooter2 = 57;
		public const int RPT_DoneBreakFooter3 = 58;
		public const int RPT_DoneBreakFooter4 = 59;
		public const int RPT_DoneBreakFooter5 = 60;
		public const int RPT_DoneBreakFooter6 = 61;
		public const int RPT_DoneBreakFooter7 = 62;
		public const int RPT_DoneBreakFooter8 = 63;
		public const int RPT_DoneBreakHeader1 = 48;
		public const int RPT_DoneBreakHeader2 = 49;
		public const int RPT_DoneBreakHeader3 = 50;
		public const int RPT_DoneBreakHeader4 = 51;
		public const int RPT_DoneBreakHeader5 = 52;
		public const int RPT_DoneBreakHeader6 = 53;
		public const int RPT_DoneBreakHeader7 = 54;
		public const int RPT_DoneBreakHeader8 = 55;
		public const int RPT_DoneDetail = 47;
		public const int RPT_DonePageFooter = 44;
		public const int RPT_DonePageHeader = 43;
		public const int RPT_DoneReportFooter = 46;
		public const int RPT_DoneReportHeader = 45;
		public const int RPT_OutputBreakFooter1 = 35;
		public const int RPT_OutputBreakFooter2 = 36;
		public const int RPT_OutputBreakFooter3 = 37;
		public const int RPT_OutputBreakFooter4 = 38;
		public const int RPT_OutputBreakFooter5 = 39;
		public const int RPT_OutputBreakFooter6 = 40;
		public const int RPT_OutputBreakFooter7 = 41;
		public const int RPT_OutputBreakFooter8 = 42;
		public const int RPT_OutputBreakHeader1 = 27;
		public const int RPT_OutputBreakHeader2 = 28;
		public const int RPT_OutputBreakHeader3 = 29;
		public const int RPT_OutputBreakHeader4 = 30;
		public const int RPT_OutputBreakHeader5 = 31;
		public const int RPT_OutputBreakHeader6 = 32;
		public const int RPT_OutputBreakHeader7 = 33;
		public const int RPT_OutputBreakHeader8 = 34;
		public const int RPT_OutputDetail = 26;
		public const int RPT_OutputPageFooter = 23;
		public const int RPT_OutputPageHeader = 22;
		public const int RPT_OutputReportFooter = 25;
		public const int RPT_OutputReportHeader = 24;
		public const int RPT_CmdFirstPage = 1;
		public const int RPT_CmdGoToPage = 9;
		public const int RPT_CmdLastPage = 2;
		public const int RPT_CmdNextPage = 3;
		public const int RPT_CmdPrevPage = 8;
		public const int RPT_CmdPrint = 4;
		public const int RPT_CmdPrinterSetup = 7;
		public const int RPT_CmdSizeActual = 6;
		public const int RPT_CmdSizeFit = 5;
		public const int RPT_ErrBind = 3;
		public const int RPT_ErrCount = 9;
		public const int RPT_ErrFilenameLength = 4;
		public const int RPT_ErrFileOpen = 5;
		public const int RPT_ErrInput = 10;
		public const int RPT_ErrLoadDLL = 1;
		public const int RPT_ErrMaxRpts = 2;
		public const int RPT_ErrPrtOpen = 8;
		public const int RPT_ErrRptOpen = 7;
		public const int RPT_ErrRptWindow = 6;
		public const int RPT_ErrType = 11;
		public const int RPT_NoPrint = 2;
		public const int RPT_NoToolbar = 4;
		public const int RPT_EnableCancel = 8;
		public const int RPT_PrintAll = 0;
		public const int RPT_PrintDraft = 2;
		public const int RPT_PrintNoAbort = 4;
		public const int RPT_PrintNoWarn = 8;
		public const int RPT_PrintNoErrors = 16;
		public const int RPT_PrintEmptyReport = 32;
		public const int RPT_PrintNullStringsAsDefaultValues = 64;
		public const int RPT_PrintParamCopies = 3;
		public const int RPT_PrintParamFirstPage = 1;
		public const int RPT_PrintParamLastPage = 2;
		public const int RPT_PrintParamOptions = 0;
		public const int RPT_PrintRange = 1;
		public const int RPT_PaperLetter = 1;
		public const int RPT_PaperTabloid = 3;
		public const int RPT_PaperLegal = 5;
		public const int RPT_PaperA3 = 8;
		public const int RPT_PaperA4 = 9;
		public const int RPT_PaperA5 = 11;
		public const int RPT_PaperB5 = 13;
		public const int RPT_PaperCustom = 256;
		public const int RPT_Portrait = 0;
		public const int RPT_Landscape = 1;
		public const int SAM_Activate = 8257;
		public const int SAM_AnyEdit = 8196;
		public const int SAM_AppExit = 8194;
		public const int SAM_AppStartup = 8193;
		public const int SAM_CacheFull = 8203;
		public const int SAM_CaptionDoubleClick = 8210;
		public const int SAM_Click = 8198;
		public const int SAM_Close = 16;
		public const int SAM_ColumnSelectClick = 8219;
		public const int SAM_ContextMenu = 8264;
		public const int SAM_CornerClick = 8214;
		public const int SAM_CornerDoubleClick = 8215;
		public const int SAM_CountRows = 8209;
		public const int SAM_Create = 8193;
		public const int SAM_CreateComplete = 8248;
		public const int SAM_CustControlCmd = 8249;
		public const int SAM_DDE_ClientExecute = 1003;
		public const int SAM_DDE_ClientRequest = 1002;
		public const int SAM_DDE_DataChange = 1001;
		public const int SAM_Destroy = 8194;
		public const int SAM_DoubleClick = 8201;
		public const int SAM_DragCanAutoStart = 8243;
		public const int SAM_DragDrop = 8242;
		public const int SAM_DragEnd = 8244;
		public const int SAM_DragEnter = 8239;
		public const int SAM_DragExit = 8241;
		public const int SAM_DragMove = 8240;
		public const int SAM_DragNotify = 8245;
		public const int SAM_DragStart = 8238;
		public const int SAM_DropDown = 8217;
		public const int SAM_DropFiles = 563;
		public const int SAM_EndCellTab = 8216;
		public const int SAM_FetchDone = 8218;
		public const int SAM_FetchRow = 8199;
		public const int SAM_FetchRowDone = 8237;
		public const int SAM_FieldEdit = 8197;
		public const int SAM_Help = 8220;
		public const int SAM_KillFocus = 4104;
		public const int SAM_Print = 8211;
		public const int SAM_ReportFetchInit = 8205;
		public const int SAM_ReportFetchNext = 8206;
		public const int SAM_ReportFinish = 8208;
		public const int SAM_ReportNotify = 8222;
		public const int SAM_ReportStart = 8207;
		public const int SAM_RowHeaderClick = 8212;
		public const int SAM_RowHeaderDoubleClick = 8213;
		public const int SAM_RowSetContext = 8247;
		public const int SAM_RowValidate = 8221;
		public const int SAM_ScrollBar = 8202;
		public const int SAM_SetFocus = 4103;
		public const int SAM_SqlError = 8195;
		public const int SAM_Timer = 275;
		public const int SAM_TblDoDetails = 8247;
		public const int SAM_User = 16384;
		public const int SAM_Validate = 8204;
		public const int SAM_Dock = 8271;
		public const int SAM_DockChange = 8269;
		public const int SAM_TblSort = 8272;
		public const int SB_Bottom = 7;
		public const int SB_LineDown = 1;
		public const int SB_LineUp = 0;
		public const int SB_PageDown = 3;
		public const int SB_PageUp = 2;
		public const int SB_ThumbPosition = 4;
		public const int SB_ThumbTrack = 5;
		public const int SB_Top = 6;
		public const int TBL_Adjust = 1;
		public const int TBL_Error = 2147423633;
		public const int TBL_FillAll = 1;
		public const int TBL_FillAllBackground = 2;
		public const int TBL_FillNormal = 0;
		public const int TBL_Flag_EditLeftJustify = 16384;
		public const int TBL_Flag_GrayedHeaders = 512;
		public const int TBL_Flag_MovableCols = 2;
		public const int TBL_Flag_SelectableCols = 128;
		[System.Obsolete("Not supported.")]
		public const int TBL_Flag_HScrollByCols = 256;
		[System.Obsolete("Not supported.")]
		public const int TBL_Flag_ShowVScroll = 4;
		[System.Obsolete("Not supported.")]
		public const int TBL_Flag_ShowWaitCursor = 1024;
		public const int TBL_Flag_SingleSelection = 4096;
		public const int TBL_Flag_SizableCols = 1;
		public const int TBL_Flag_SuppressLastColLine = 8192;
		public const int TBL_Flag_SuppressRowLines = 2048;
		public const int TBL_MaxRow = 2147423632;
		public const int TBL_MinRow = -2147423632;
		public const int TBL_MinSplitRow = -2147423630;
		public const int TBL_NoAdjust = 0;
		public const int TBL_NoMoreRows = 0;
		public const int TBL_RowDeleted = 2;
		public const int TBL_RowFetched = 1;
		public const int TBL_RowHdr_MarkEdits = 1;
		public const int TBL_RowHdr_ShareColor = 16;
		public const int TBL_RowHdr_Sizable = 4;
		public const int TBL_RowHdr_RowsSizable = 32;
		public const int TBL_RowHdr_Visible = 8;
		public const int TBL_AutoScroll = 0;
		public const int TBL_ScrollTop = 1;
		public const int TBL_ScrollBottom = 2;
		public const int TBL_SetFirstRow = 3;
		public const int TBL_SetLastRow = 2;
		public const int TBL_SetNextRow = 0;
		public const int TBL_SetPrevRow = 1;
		public const int TBL_SortDecreasing = 0;
		public const int TBL_SortIncreasing = 1;
		public const int TBL_Split_Adjustable = 1;
		public const int TBL_TempRow = 2147423633;
		public const int TBL_XOverLockedColumns = 512;
		public const int TBL_XOverLockedColumnsBorder = 2048;
		public const int TBL_XOverRowHeader = 256;
		public const int TBL_XOverUnlockedColumns = 1024;
		public const int TBL_YOverColumnHeader = 1;
		public const int TBL_YOverNormalRows = 4;
		public const int TBL_YOverSplitBar = 8;
		public const int TBL_YOverSplitRows = 2;
		[System.Obsolete("Not supported")]
		public const int TPM_CenterAlign = 4;
		public const int TPM_ContextMenu = 16384;
		public const int TPM_CursorX = 256;
		public const int TPM_CursorY = 512;
		public const int TPM_LeftAlign = 0;
		public const int TPM_LeftButton = 0;
		[System.Obsolete("Not supported")]
		public const int TPM_RightAlign = 8;
		[System.Obsolete("Not supported")]
		public const int TPM_RightButton = 2;
		public const int TYPE_Any = 2147483647;
		public const int TYPE_BkgdText = 2048;
		public const int TYPE_CheckBox = 128;
		public const int TYPE_ChildTable = 524288;
		public const int TYPE_ComboBox = 16384;
		public const int TYPE_ActiveX = 134217728;
		public const int TYPE_CustControl = 67108864;
		public const int TYPE_AccFrame = 268435456;
		public const int TYPE_DataField = 8;
		public const int TYPE_DialogBox = 4;
		public const int TYPE_FormToolBar = 2097152;
		public const int TYPE_FormWindow = 1;
		public const int TYPE_Frame = 65536;
		public const int TYPE_GroupBox = 256;
		public const int TYPE_HorizScrollBar = 512;
		public const int TYPE_Line = 32768;
		public const int TYPE_ListBox = 8192;
		public const int TYPE_MDIWindow = 1048576;
		public const int TYPE_MultilineText = 16;
		public const int TYPE_OptButton = 33554432;
		public const int TYPE_Picture = 131072;
		public const int TYPE_PushButton = 32;
		public const int TYPE_RadioButton = 64;
		public const int TYPE_TableColumn = 4096;
		public const int TYPE_TableWindow = 2;
		public const int TYPE_VertScrollBar = 1024;
		public const int VALIDATE_Cancel = 0;
		public const int VALIDATE_Ok = 1;
		public const int VALIDATE_OkClearFlag = 2;
		public const int Window_Invalid = 1;
		public const int Window_Maximized = 3;
		public const int Window_Normal = 5;
		public const int Window_NotVisible = 2;
		public const int Window_Minimized = 4;
		public const int WM_DDE_Ack = 996;
		public const int WM_DDE_Advise = 994;
		public const int WM_DDE_Data = 997;
		public const int WM_DDE_Execute = 1000;
		public const int WM_DDE_First = 992;
		public const int WM_DDE_Initiate = 992;
		public const int WM_DDE_Poke = 999;
		public const int WM_DDE_Request = 998;
		public const int WM_DDE_Terminate = 993;
		public const int WM_DDE_Unadvise = 995;
		public const int CREATE_Hidden = 1;
		public const int CREATE_Border = 2;
		public const int CREATE_AsChild = 4;
		public const int TRACE_File = 1;
		public const int TRACE_Output = 2;
		public const int TRACE_stdout = 3;
		public const int TRACE_Event = 4;
		public const int EVENT_ERROR = 1;
		public const int EVENT_WARNING = 2;
		public const int EVENT_INFORMATION = 4;
		public const int VT_EMPTY = 0;
		public const int VT_BOOL = 11;
		public const int VT_BSTR = 8;
		public const int VT_CY = 6;
		public const int VT_DATE = 7;
		public const int VT_DISPATCH = 9;
		public const int VT_ERROR = 10;
		public const int VT_UNKNOWN = 13;
		public const int VT_DECIMAL = 14;
		public const int VT_I2 = 2;
		public const int VT_I4 = 3;
		public const int VT_R4 = 4;
		public const int VT_R8 = 5;
		public const int VT_VARIANT = 12;
		public const int VT_VOID = 24;
		public const int VT_I1 = 16;
		public const int VT_UI1 = 17;
		public const int VT_UI2 = 18;
		public const int VT_UI4 = 19;
		public const int SAL_VARIANT = 0;
		public const int SAL_OBJECT = 1;
		public const int SAL_STRING = 2;
		public const int SAL_NUMBER = 3;
		public const int SAL_BOOLEAN = 4;
		public const int SAL_DATE = 5;
		public const int SAL_ARRAY = 6;
		public const int SAL_NOTYPE = 7;
		public const int DOCK_None = 0;
		public const int DOCK_Left = 1;
		public const int DOCK_Top = 2;
		public const int DOCK_Right = 4;
		public const int DOCK_Bottom = 8;
		public const int DOCK_Any = 15;
		public static TraceSwitch TraceSQL = new TraceSwitch("SQL", "Trace SQL operations");
		public static TraceSwitch TraceWindows = new TraceSwitch("Windows", "Trace Windows operations");
		public static TraceSwitch TraceFiles = new TraceSwitch("Files", "Trace File operations");
		public static TraceSwitch TraceReports = new TraceSwitch("Reports", "Trace Report operations");
		public static TraceSwitch TraceSystem = new TraceSwitch("System", "Trace System operations");
		public static TraceSwitch TraceApplication = new TraceSwitch("Application", "Trace Application operations");
		public static TraceSwitch TraceTableWindow = new TraceSwitch("TableWindow", "Trace TableWindow operations");
		private static string m_logFile;
		private static TraceListener m_logListener;
		private static System.Resources.ResourceManager resources = null;
		public static string Namespace = "";
		[System.ThreadStatic]
		public static SalWindowHandle hWndItem = SalWindowHandle.Null;
		[System.ThreadStatic]
		public static SalWindowHandle hWndForm = SalWindowHandle.Null;
		[System.ThreadStatic]
		public static SalWindowHandle hWndMDI = SalWindowHandle.Null;
		public static SalArray<SalString> strArgArray = new SalArray<SalString>();
		public static SalNumber nArgCount;
		[System.ThreadStatic]
		public static object wParam;
		[System.ThreadStatic]
		public static object lParam;
		[NewSyntax(typeof(SalWindowHandle), System.Reflection.BindingFlags.Static, "Null")]
		public static readonly SalWindowHandle hWndNULL = SalWindowHandle.Null;
		[NewSyntax(typeof(SalNumber), System.Reflection.BindingFlags.Static, "Null")]
		public static readonly SalNumber NUMBER_Null = SalNumber.Null;
		[NewSyntax(typeof(SalString), System.Reflection.BindingFlags.Static, "Null")]
		public static readonly SalString STRING_Null = SalString.Null;
		[NewSyntax(typeof(SalDateTime), System.Reflection.BindingFlags.Static, "Null")]
		public static readonly SalDateTime DATETIME_Null = SalDateTime.Null;
		internal static string LogFile
		{
			get
			{
				return Sys.m_logFile;
			}
			set
			{
				if (Sys.m_logFile != value)
				{
					Sys.m_logFile = value;
					if (Sys.m_logFile == null || Sys.m_logFile.Length == 0)
					{
						if (Sys.m_logListener != null)
						{
							Sys.m_logListener.Dispose();
							Trace.Listeners.Remove(Sys.m_logListener);
							Sys.m_logListener = null;
							return;
						}
					}
					else
					{
						Sys.m_logListener = new TextWriterTraceListener(Sys.m_logFile);
						Trace.AutoFlush = true;
						Trace.Listeners.Add(Sys.m_logListener);
					}
				}
			}
		}
		private static System.Resources.ResourceManager Resources
		{
			get
			{
				if (Sys.resources == null)
				{
					lock (typeof(Sys))
					{
						if (Sys.resources == null)
						{
							Sys.resources = new System.Resources.ResourceManager("PPJ.Runtime.Properties.Resources", typeof(Sys).Assembly);
						}
					}
				}
				return Sys.resources;
			}
		}
		public static void TraceInfo(TraceSwitch traceswitch, string text, params object[] args)
		{
			if (traceswitch.TraceInfo)
			{
				Trace.WriteLine(string.Format(text, args), traceswitch.DisplayName);
			}
		}
		public static void TraceError(TraceSwitch traceswitch, string text, params object[] args)
		{
			if (traceswitch.TraceError)
			{
				Trace.WriteLine(string.Format(text, args), traceswitch.DisplayName);
			}
		}
		public static void TraceWarning(TraceSwitch traceswitch, string text, params object[] args)
		{
			if (traceswitch.TraceWarning)
			{
				Trace.WriteLine("Warning: Message: " + string.Format(text, args), traceswitch.DisplayName + "\"");
			}
		}
		public static void TraceVerbose(TraceSwitch traceswitch, string text, params object[] args)
		{
			if (traceswitch.TraceVerbose)
			{
				Trace.WriteLine(string.Format(text, args), traceswitch.DisplayName);
			}
		}
		public static void TraceException(TraceSwitch traceswitch, System.Exception e, TraceLevel level)
		{
			if (traceswitch.Level >= level)
			{
				if (e.InnerException == null)
				{
					Trace.WriteLine(string.Format("Exception: {0}: Message={1}, Type={0}", e.GetType().FullName, e.Message), traceswitch.DisplayName);
					return;
				}
				Trace.WriteLine(string.Format("Exception: {0}: Message={1}, Type={0}, InnerException={2}", e.GetType().FullName, e.Message, e.InnerException.ToString()), traceswitch.DisplayName);
			}
		}
		public static void LogNotImplemented()
		{
			if (Sys.TraceSystem.TraceVerbose)
			{
				System.Diagnostics.StackFrame stackFrame = new System.Diagnostics.StackFrame(1);
				System.Reflection.MethodBase method = stackFrame.GetMethod();
				Sys.TraceVerbose(Sys.TraceSystem, "Not Implemented: Method: Name={0}, DeclaringType={1}", new object[]
				{
					method.Name,
					method.DeclaringType.Name
				});
			}
		}
		public static void LogNotSupported()
		{
			if (Sys.TraceSystem.TraceVerbose)
			{
				System.Diagnostics.StackFrame stackFrame = new System.Diagnostics.StackFrame(1);
				System.Reflection.MethodBase method = stackFrame.GetMethod();
				Sys.TraceVerbose(Sys.TraceSystem, "Not Supported: Method: Name={0}, DeclaringType={1}", new object[]
				{
					method.Name,
					method.DeclaringType.Name
				});
			}
		}
		public static int GetExceptionHResult(System.Exception ex)
		{
			if (ex == null)
			{
				return 0;
			}
			int result;
			try
			{
				object obj = ex.GetType().InvokeMember("HResult", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.GetProperty, null, ex, null);
				result = (int)obj;
			}
			catch (System.Exception e)
			{
				Sys.TraceException(Sys.TraceSystem, e, TraceLevel.Error);
				result = 0;
			}
			return result;
		}
		internal static string GetString(string text)
		{
			return Sys.Resources.GetString(text);
		}
	}
}
